using FluentValidation;
	
namespace VehicleModule.Api.Model
{
    /// <summary>
    ///车辆表 验证类
    /// </summary>
    public class VehiclesUpdateRequestValidator : AbstractValidator<VehiclesUpdateRequest>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public VehiclesUpdateRequestValidator()
        {
            RuleFor(s => s.Licenseplate).NotEmpty().Length(0, 100);
            RuleFor(s => s.Identifier).NotEmpty().Length(0, 100);
            RuleFor(s => s.Brand).NotEmpty().Length(0, 100);
            RuleFor(s => s.EngineModel).NotEmpty().Length(0, 100);
            RuleFor(s => s.OwnersNname).NotEmpty().Length(0, 100);
            RuleFor(s => s.Idnumber).NotEmpty().Length(0, 100);
            RuleFor(s => s.Colour).NotEmpty().Length(0, 100);
            RuleFor(s => s.ChassisNumber).NotEmpty().Length(0, 100);
            RuleFor(s => s.Gender).NotEmpty().Length(0, 100);
            RuleFor(s => s.Address).NotEmpty().Length(0, 100);
            RuleFor(s => s.Mobile).NotEmpty().Length(0, 100);
            RuleFor(s => s.Certificate).NotEmpty().Length(0, 100);
            RuleFor(s => s.Insuranceduration).NotEmpty().Length(0, 100);
            RuleFor(s => s.Situation).NotEmpty().Length(0, 100);
            RuleFor(s => s.Surcharge).NotEmpty().Length(0, 100);
            RuleFor(s => s.MeterNumber).NotEmpty().Length(0, 100);
            RuleFor(s => s.Cylinder).NotEmpty().Length(0, 100);
            RuleFor(s => s.Illegal).NotEmpty().Length(0, 100);
            RuleFor(s => s.Remark).NotEmpty().Length(0, 100);
            RuleFor(s => s.Image).NotEmpty().Length(0, 100);
            RuleFor(s => s.Benchtestoilinlet).NotEmpty().Length(0, 100);
            RuleFor(s => s.MaxSpeed).NotEmpty().Length(0, 100);
            RuleFor(s => s.MaxFuel).NotEmpty().Length(0, 100);
            RuleFor(s => s.MinSpeed).NotEmpty().Length(0, 100);
            RuleFor(s => s.MinFuel).NotEmpty().Length(0, 100);
        }
    }
}
